package com.netty.tcp.ew.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 结算记录对象 financial_statement
 * 
 * @author Mr.wu
 * @date 2023-11-17
 */
public class FinancialStatement
{
    private static final long serialVersionUID = 1L;

    /** 结算记录ID */
    private Integer statementId;

    /** 结算设备ID */
    private Integer statementDeviceId;

    /** 结算账户 */
    private Integer statementAccountId;

    /** 结算金额 */
    private BigDecimal statementCost;

    /** 结算前余额 */
    private BigDecimal statementBefore;

    /** 结算后余额 */
    private BigDecimal statementAfter;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 数据归属 */
    private Integer companyId;



    public void setStatementId(Integer statementId) 
    {
        this.statementId = statementId;
    }

    public Integer getStatementId() 
    {
        return statementId;
    }
    public void setStatementDeviceId(Integer statementDeviceId) 
    {
        this.statementDeviceId = statementDeviceId;
    }

    public Integer getStatementDeviceId() 
    {
        return statementDeviceId;
    }
    public void setStatementAccountId(Integer statementAccountId) 
    {
        this.statementAccountId = statementAccountId;
    }

    public Integer getStatementAccountId() 
    {
        return statementAccountId;
    }

    public void setStatementCost(BigDecimal statementCost)
    {
        this.statementCost = statementCost;
    }

    public BigDecimal getStatementCost()
    {
        return statementCost;
    }
    public void setStatementBefore(BigDecimal statementBefore) 
    {
        this.statementBefore = statementBefore;
    }

    public BigDecimal getStatementBefore() 
    {
        return statementBefore;
    }
    public void setStatementAfter(BigDecimal statementAfter) 
    {
        this.statementAfter = statementAfter;
    }

    public BigDecimal getStatementAfter() 
    {
        return statementAfter;
    }
    public String getCreateBy()
    {
        return createBy;
    }

    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getUpdateBy()
    {
        return updateBy;
    }

    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("statementId", getStatementId())
            .append("statementDeviceId", getStatementDeviceId())
            .append("statementAccountId", getStatementAccountId())
            .append("statementCost", getStatementCost())
            .append("statementBefore", getStatementBefore())
            .append("statementAfter", getStatementAfter())
            .append("companyId", getCompanyId())
            .toString();
    }
}
